import instance from "./axios";



const cms_subject_categoryPage=(data)=>{
    return instance.request({
        url:'/mall/cms-subject-category/page',
        method:'post',
        data
    })
}
const cms_subject_categoryDelId=(id)=>{
    return instance.request({
        url:'/mall/cms-subject-category/del/${id}',
        method:'get'
    })
}
const cms_subject_categoryAdd=(data)=>{
    return instance.request({
        url:'/mall/cms-subject-category/add',
        method:'post',
        data
    })
}
const cms_subject_categoryEdit=(data)=>{
    return instance.request({
        url:'/mall/cms-subject-category/edit',
        method:'post',
        data
    })
}

// const cms_subject_categoryOne = (id) => {
//     return instance.request({
//         url:'/mall/cms-subject-category/one/${id}',
//         method:'get'
//     })
// }

export {
    cms_subject_categoryPage,
    cms_subject_categoryDelId,
    cms_subject_categoryAdd,
    cms_subject_categoryEdit,
    //cms_subject_categoryOne
}
